import request from '@/utils/request'

// 查询核酸住户任务列表
export function listNucleateresidenttask(query) {
  return request({
    url: '/system/nucleateresidenttask/list',
    method: 'get',
    params: query
  })
}

// 查询核酸住户任务详细
export function getNucleateresidenttask(id) {
  return request({
    url: '/system/nucleateresidenttask/' + id,
    method: 'get'
  })
}

// 新增核酸住户任务
export function addNucleateresidenttask(data) {
  return request({
    url: '/system/nucleateresidenttask',
    method: 'post',
    data: data
  })
}

// 修改核酸住户任务
export function updateNucleateresidenttask(data) {
  return request({
    url: '/system/nucleateresidenttask',
    method: 'put',
    data: data
  })
}

// 删除核酸住户任务
export function delNucleateresidenttask(id) {
  return request({
    url: '/system/nucleateresidenttask/' + id,
    method: 'delete'
  })
}
